package com.stylefeng.guns.modular.netcar.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.netcar.model.DispatchPsnCar;

import java.util.List;

/**
 * 
 * 调度员可调度车辆 Mapper 接口 
 * @author sasazaixian
 * @Date 2018-11-15 10:29
 */
public interface DispatchPsnCarMapper extends BaseMapper<DispatchPsnCar> {
    /**
     * 删除调度员可调度车辆
     * @param  dispatchPsnCar
     * @return    
     */
    int deleteDispatchPsnCar(DispatchPsnCar dispatchPsnCar)throws Exception;
    /**
     * 批量调度员可调度车辆
     * @param ids 主键id数组
     * @return     
     */
    int deleteBatchDispatchPsnCar(String[] ids)throws Exception;
    /**
     * 查询调度员可调度车辆列表
     * @param dispatchPsnCar 调度员可调度车辆对象
     * @return      
     */
    List<DispatchPsnCar> selectListDispatchPsnCar(DispatchPsnCar dispatchPsnCar)throws Exception;
    /**
     * 分页查询调度员可调度车辆列表
     * @param page  分页对象
     * @param dispatchPsnCar 系统操作对象
     * @return
     * @Date 2018-10-02
     */
    List<DispatchPsnCar> selectListDispatchPsnCar(Page page, DispatchPsnCar dispatchPsnCar)throws Exception;


    /**
     * 同一个事务 互斥锁查询
     * @param dispatchPsnCar 系统操作对象
     * @return     
     */
    List<DispatchPsnCar> selectListDispatchPsnCarForUpdate(DispatchPsnCar dispatchPsnCar)throws Exception;
    /**
     * 通过主键ID查询调度员可调度车辆对象
     * @param id 主键id
     * @return    
     */
    DispatchPsnCar findDispatchPsnCarById(String id)throws Exception;

    /**
     * 插入调度员可调度车辆
     * @param dispatchPsnCar
     * @return   
     */
    int insertDispatchPsnCar(DispatchPsnCar dispatchPsnCar) throws Exception ;
    /**
     * 更新调度员可调度车辆
     * @param dispatchPsnCar
     * @return     
     */
    int updateDispatchPsnCar(DispatchPsnCar dispatchPsnCar) throws Exception ;


}
